//
//  XS_LearnAllView.swift
//  XueDao
//
//  Created by Mac on 2020/12/14.
//

import UIKit

class XS_LearnAllView: UIView {
    
    lazy var marginView : UIView = {
        let marginView = UIView.init(frame: CGRect.init(x: 0, y: 0, width: .screenWidth, height: 8))
        marginView.backgroundColor = UIColor.qmui_color(withHexString: "#F7F7F7")
        return marginView
    }()
    
    lazy var titleLabel : UILabel = {
        let titleLabel = UILabel.init(frame: .zero)
        titleLabel.textColor = UIColor.qmui_color(withHexString: "#383C3F")
        titleLabel.font = .systemFont(ofSize: 18, weight: .semibold)
        titleLabel.text = "我的课程"
        return titleLabel
    }()

    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(marginView)
        marginView.snp.makeConstraints { (make) in
            make.left.top.right.equalToSuperview()
            make.height.equalTo(8)
        }
        addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(16)
            make.top.equalTo(marginView.snp.bottom).offset(8 + 16)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
